const path = require('path')
module.exports = {
  // 配置路径别名
  configureWebpack: {
    devServer: {
      // 调试时允许内网穿透，让外网的人访问到本地调试的H5页面
      disableHostCheck: true,
    },
    resolve: {
      alias: {
        "@c": path.resolve(__dirname, "common"),
        // components: "@/components",
      },
    },
  },
  // productionSourceMap: false,
  devServer: {
    https: false,
    port: "8080",
    disableHostCheck: true,
    proxy: {
      "/gmm": {
        target: "http://192.168.0.100:9999/",//https://fmn315.xyz/   http://192.168.0.100:9999/
        changeOrigin: true,
        secure: false, // 设置支持https协议的代理
        pathRewrite: {
          "^/": "",
        },
      },
    },
  },
};
